# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
pkgname=py3-swagger-ui-bundle
_pkgname=swagger_ui_bundle
pkgver=0.0.9
pkgrel=3
pkgdesc="bundled swagger-ui package"
url="https://github.com/dtkav/swagger-ui-bundle"
arch="noarch !riscv64" # missing checkdep
license="Apache-2.0"
checkdepends="
	py3-pytest
	py3-pytest-runner
	"
makedepends="
	py3-flake8
	py3-setuptools
	"
depends="
	python3
	py3-jinja2
	"
subpackages="$pkgname-pyc"
source="https://github.com/dtkav/swagger-ui-bundle/archive/v$pkgver/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
25318bb9e69a0e23f4382322586efb55dd1d3fc093c57527803cc8c9dd6f0e67ce51b20ec8cbc03cf456b8d95172ac1577d79100ba56c6580eeea7e4a649fbc4  swagger_ui_bundle-0.0.9.tar.gz
"
